home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 1 / BBS in a box - Trilogy I.iso / Files / MIDI / H-M / midifile routines Folder / readme next >
Encoding:
Text File  |  1992-11-15  |  1.5 KB  |  44 lines  |  [TEXT/MPS ]

  1. Midi to C Sound and C Sound to Midi File Conversion
  2.  
  3. Two standard Unix compatable routines for converting file formats have been
  4. written.
  5.  
  6.     writemidi -- converts a CSound score into a midi file.
  7.     readmidi  -- converts a midi file into a csound score.
  8.  
  9.     The input Midi Files must be Midi File Format 0 or 1.
  10.     They will always be written in file format 0.
  11.     The CSound scores must have the following p-fields :
  12.         p1 = Midi channel number (1-16).
  13.         p2 = start time in beats (tempo = 120).
  14.         p3 = duration.
  15.         p4 = Midi amplitude (0 - 127).
  16.         p5 = Midi note number (0 - 127).
  17.  
  18.     Notes :
  19.                 1 ) Only i-cards are processed in the the CSound files.
  20.                     Hence, t-cards are ignored.
  21.                 2 ) Tempo changes are handled properly when converting
  22.                     from format 0 Midi files to C Sound, but tempo changes
  23.                     are ignored when converting format 1 midi files.
  24.  
  25.  
  26.     Usage examples :
  27.         writemidi    oboe.sco   oboe.mid
  28.         readmidi    jazz.mid    jazz.sco
  29.  
  30.         writemidi    long.sco    long.mid    10000
  31.                         The 10000 tells the computer to allocate space for
  32.                         10000 note on/off events instead of the default 3500
  33.                         events. This might be necessary for long scores.
  34.  
  35.  
  36.     Versions :
  37.                 Versions of these routines have been written for both the
  38.                 IBM PC and the NEXT. They have only minor differences that
  39.                 involve differences in include files and binary file types
  40.                 in the fopen subroutines.
  41.  
  42.  
  43.  
  44.